package designpattern.command;

/**
 * TODO:类描述
 *
 * @className: ChangeChannelCommand
 * @packageName: designpattern.command
 * @author: Zhuhj
 * @version: V1.0
 * @date: 2021/4/21 19:57
 */
public class ChangeChannelCommand implements Command{
    private TV mytv ;
    private int channel;

    public ChangeChannelCommand(TV tv,int channel){
        this.mytv = tv;
        this.channel =channel;
    }
    @Override
    public void execute() {
        mytv.changeChanel(channel);
    }
}
